home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / diffs / libgplus.262 / libio / filebuf.cc < prev    next >
Encoding:
Text File  |  1995-01-18  |  727 b   |  30 lines

  1. *** orig/libgplus.262/libio/filebuf.cc    Sun Dec 18 18:47:32 1994
  2. --- src/libgplus.262/libio/filebuf.cc    Sun Dec 18 22:25:00 1994
  3. ***************
  4. *** 24,30 ****
  5. --- 24,34 ----
  6.   
  7.   Written by Per Bothner (bothner@cygnus.com). */
  8.   
  9. + #ifndef __MSDOS__
  10.   #include "iostreamP.h"
  11. + #else
  12. + #include "iostreaP.h"
  13. + #endif
  14.   #include <sys/types.h>
  15.   #include <sys/stat.h>
  16.   #include <fcntl.h>
  17. ***************
  18. *** 99,104 ****
  19. --- 103,112 ----
  20.       posix_mode |= O_CREAT;
  21.     if (mode & (int)ios::noreplace)
  22.       posix_mode |= O_EXCL;
  23. + #ifdef O_BINARY
  24. +   if (mode & (int)ios::bin)
  25. +     posix_mode |= O_BINARY;
  26. + #endif
  27.     int fd = ::open(filename, posix_mode, prot);
  28.     if (fd < 0)
  29.       return NULL;
  30.